package com.xyzwps.orm.mybatis.repository;

import com.xyzwps.orm.mybatis.mapper.TagMapper;
import com.xyzwps.orm.repository.TablesRepository;

import java.util.Objects;

public class MybatisTablesRepository implements TablesRepository {

    private final TagMapper tagMapper;

    public MybatisTablesRepository(TagMapper tagMapper) {
        this.tagMapper = Objects.requireNonNull(tagMapper);
    }

    @Override
    public void cleanAllTables() {
        tagMapper.deleteAll();
    }
}
